<%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div region="north" split="true" style="padding: 5px;">
<form id="moduleForm" method="post" style="margin:0;padding:0">
	<table align="center">
			<tr>
				<td>模块名称：</td>
				<td><input class="easyui-validatebox" type="text" required="true" name="name" value="${Module.name }" style="width: 200px;" maxlength="15"/>
				<input type="hidden" name="uuid" value="${Module.uuid }">
				</td>
			</tr>
			<tr>
				<td>模块访问路径：</td>
				<td><input class="easyui-validatebox" type="text" name="url" value="${Module.url }" style="width: 200px;" maxlength="100"/></td>
			</tr>
			<tr>
				<td>排序号：</td>
				<td><input class="easyui-numberbox easyui-validatebox" type="text" name="orderCode" required="true" value="${Module.orderCode }" style="width: 200px;" maxlength="5"/></td>
			</tr>
			<tr>
				<td>模块状态：</td>
				<td>
					<select class="easyui-combobox" editable="false" name="status" required="true" style="width:200px;">  
					    <option value="1" <c:if test="${Module.status == 1}">selected="selected"</c:if>>启用</option>  
					    <option value="0" <c:if test="${Module.status == 0}">selected="selected"</c:if>>禁用</option>  
					</select>  
				</td>
			</tr>
			<tr>
				<td>上级模块：</td>
				<td>
					<input id="parentModule_" name="puuid" class="easyui-combobox" title="主模块此项默认不填写" style="width:200px;" data-options="  
				        valueField: 'uuid',  
				        textField: 'name',  
				        editable:false,
				        url: '<c:url value="/system/module/findParentModules.do"/>',  
				        onLoadSuccess: function(){  
				        	var puuid = '${Module.puuid }';
				        	if(puuid == '1') return;
				            $('#parentModule_').combobox('select', '${Module.puuid }');
				     }" /> 
				</td>
			</tr>
	</table>
</form>
</div>
